package org.hgvc.webapp.ets.bo;

import java.io.Serializable;
import java.util.Date;

import org.hgvc.webapp.ets.constant.PartnerConstant;


public class PartnerDocumentCheckList implements Serializable {

	private String partnerDocCheckListId;
	private String flag;
	private Partner partner;
	private PartnerDocument document;
	private Date revDate;
	private org.jocsb.base.bo.User createdBy;
	private org.jocsb.base.bo.User modifiedBy;
	private Date createdDate;
	private Date modifiedDate;
	private String isDeleted;
	private boolean check;
	
	public PartnerDocumentCheckList(){
		
	}
	
	public PartnerDocumentCheckList(String partnerDocCheckListId) {
		super();
		this.partnerDocCheckListId = partnerDocCheckListId;
	}


	public String getPartnerDocCheckListId() {
		return partnerDocCheckListId;
	}


	public void setPartnerDocCheckListId(String partnerDocCheckListId) {
		this.partnerDocCheckListId = partnerDocCheckListId;
	}


	public String getFlag() {
		return flag;
	}


	public void setFlag(String flag) {
		this.flag = flag;
	}


	public Partner getPartner() {
		return partner;
	}


	public void setPartner(Partner partner) {
		this.partner = partner;
	}


	public PartnerDocument getDocument() {
		return document;
	}


	public void setDocument(PartnerDocument document) {
		this.document = document;
	}


	public org.jocsb.base.bo.User getCreatedBy() {
		return createdBy;
	}


	public void setCreatedBy(org.jocsb.base.bo.User createdBy) {
		this.createdBy = createdBy;
	}


	public org.jocsb.base.bo.User getModifiedBy() {
		return modifiedBy;
	}


	public void setModifiedBy(org.jocsb.base.bo.User modifiedBy) {
		this.modifiedBy = modifiedBy;
	}


	public Date getCreatedDate() {
		return createdDate;
	}


	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}


	public Date getModifiedDate() {
		return modifiedDate;
	}


	public void setModifiedDate(Date modifiedDate) {
		this.modifiedDate = modifiedDate;
	}


	public String getIsDeleted() {
		return isDeleted;
	}


	public void setIsDeleted(String isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Date getRevDate() {
		return revDate;
	}

	public void setRevDate(Date revDate) {
		this.revDate = revDate;
	}

	public boolean isCheck() {
		if(flag.equalsIgnoreCase(PartnerConstant.PARTNER_DOC_STATUS_COMPLETE)){
			check = true;
		}else{
			check = false;
		}
		
		return check;
	}

	public void setCheck(boolean check) {
		this.check = check;
		if(check){
			flag = PartnerConstant.PARTNER_DOC_STATUS_COMPLETE;
		}else{
			flag = PartnerConstant.PARTNER_DOC_STATUS_UNCOMPLETE;
		}
	}
	
	
}
